package com.morehair.bean.bo.admin;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;


import java.math.BigDecimal;
import java.sql.Date;


/**
 * Author  kkw
 * Date  2021/6/9 23:51
 * Version 1.0
 * Description :
 */
@NoArgsConstructor
@Data
@AllArgsConstructor
public class GroupOnRulesBo {
    @JsonProperty("goodsId")
    private Integer goodsId;
    @JsonProperty("discount")
    private BigDecimal discount;
    @JsonProperty("discountMember")
    private Integer discountMember;
    @JsonProperty("expireTime")
//    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")

    @DateTimeFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date expireTime;
}
